<template>
  <div :style="{
    height: `1rem`,
    width: `1rem`,
    border: '1px solid black',
    backgroundColor: `rgb(${color.r},${color.g},${color.b})`
  }"></div>
</template>

<script setup lang="ts">
import type { MathColor } from '~/models/Math/MathColor';

defineProps<{
  color: MathColor
}>()
</script>
